package com.yunhe.java.pro07.duotai;

/**
 * Created by Administrator on 2017/7/31 0031.
 */
public class Main {
    public static void main(String[] args){
        Pet pet1=new Cat();
        pet1.setName("花花");
        Pet pet2=new Dog();
        pet2.setName("大黄");
        Mastor mastor=new Mastor();
        mastor.name = "主人";
        mastor.feed(pet1);
        mastor.feed(pet2);

    }
}

